import Pagetools from '@/components/PageTools/index.vue'
import Uploader from '@/components/UploadExcel/index.vue'
import ScreenFull from '@/components/ScreenFullButton/screenfull.vue'
import store from '@/store/index'
const fn = (Vue) => {
    Vue.component(Pagetools.name, Pagetools)
    Vue.component(Uploader.name, Uploader)
    Vue.component(ScreenFull.name, ScreenFull)
    Vue.directive('isshow', {
        inserted (el, binding) {
            const points = store.state.user.userinfo.roles.points
            if (!points.includes(binding.value)) {
                el.remove()
            }
        }
    })
}

export default fn